<!-- ProductWrapper.vue -->
<script setup>
import { computed } from 'vue'
// import { useStore } from 'vuex'
import Product from './Product.vue'

const props = defineProps(['id'])
// const store = useStore()

// 响应式计算库存状态
const inStock = computed(() => {
  // return store.state.inventory[props.id] > 0
	return true;
})
</script>

<template>
  <Product :id="id" :in-stock="inStock" />
</template>